<template>
  <div >
    <iframe src="/about/about.html" width="100%" height="2000px" frameborder="0" scrolling="auto" id="iframename" name="iframename" ></iframe>
  </div>
</template>
<script>
import http from '@/utils/httpRequest'
export default {
  name: "about",
  data() {
    return {
      url: "about/about.html",
      html : ''
    };
  },
  mounted() {
    if (this.userInfo != null) {
      this.$store.commit("setNavStatus", 4);
    } else {
      this.$store.commit("setNavStatus", 3);
    }

  },
  methods: {
    load() {
      let param = {
        accept: "text/html, text/plain",
      };
      this.$http
        .get(this.url, param)
        .then((response) => {
          console.log(response)
          this.html = response.data;
        })
        .catch(() => {
          this.loading = false;
          this.html = "加载失败";
        });
    },
  },
  computed: {
    userInfo() {
      return this.$store.getters.getUserInfo;
    },
    destroyed() {
      this.$store.commit("init");
    },
  },
};
</script>
